package io.renren.modules.miniapp.controller;

import io.renren.common.utils.EnumUtil;
import io.renren.common.utils.EnumVo;
import io.renren.common.utils.R;
import io.renren.modules.communityService.enums.DbSuggestionsType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 小程序枚举配置
 *
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2021-03-21 13:45:49
 */
@RestController
@RequestMapping("miniapp/enums")
@Api(value = "小程序枚举配置",tags = "小程序枚举配置")
public class MiniAppEnumsController {

    /**
     * 投诉建议类型
     */
    @GetMapping("/dbSuggestionsTypes")
    @ApiOperation(value = "投诉建议类型",notes = "投诉建议类型")
    public R dbSuggestionsTypes(){
        List<EnumVo> enumVos = EnumUtil.enumToVo(DbSuggestionsType.values());
        return R.data(enumVos);
    }


}
